/**
 *  Version.java : IceBird project
 *  22:59:24 
 */
package icebird.utils;

/**
 * @author sergey
 */
public final class Version {

	private int minor;
	private int major;
	
	/**
	 * @param minor
	 * @param major
	 */
	public Version(int minor, int major) {
		this.minor = minor;
		this.major = major;
	}
	
	/**
	 * @return the major
	 */
	public final int getMajor() {
		return major;
	}
	
	/**
	 * @return the minor
	 */
	public final int getMinor() {
		return minor;
	}
	
	/**
	 * @param major the major to set
	 */
	public final void setMajor(int major) {
		this.major = major;
	}
	
	/**
	 * @param minor the minor to set
	 */
	public final void setMinor(int minor) {
		this.minor = minor;
	}
	
	/**
	 * Returns string representation.
	 * @return String
	 */
	public final String toString() {
		return String.valueOf(major) +
		       '.' + String.valueOf(minor);
	}
}
